using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
namespace Bussiness.Entity
{
                

     public class PT_RoleEntity:AF_ORM.CORE.BaseEntity
    {
         public PT_RoleEntity()
         {
             tableName = "PT_Role";


			 fieldInfos.Add(new FieldInfo("PT_Role","RoleId","RoleId","int",0,false,false,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Role","RoleName","RoleName","string",100,false,true,true,false,"","",""));
         }
       //properties
                    
		 protected int m_RoleId;
		 protected string m_RoleName;

		 public int RoleId

          { 
                get { 
                    return m_RoleId;}

                set{m_RoleId=value;

                    GetField("RoleId").Set();
                    GetField("RoleId").IsNull=(value == null);           
                    }
          }
		 public string RoleName

          { 
                get { 
                    return m_RoleName;}

                set{m_RoleName=value;

                    GetField("RoleName").Set();
                    GetField("RoleName").IsNull=(value == null);           
                    }
          }

}
}
